package com.ficus.road.maintain.core.model;

import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;

/**
 * 日志类-记录用户操作行为
 *
 * @author lin.r.x
 */
@Data
public class OperationLog implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;              //日志主键
    private String type;            //日志类型
    private String title;           //日志标题
    private String remoteAddr;      //请求地址
    private String requestUri;      //URI
    private String method;          //请求方式
    private String params;          //提交参数
    private Date operateDate;       //开始时间
    private Long timeout;           //结束时间
    private String resultParams;    //返回参数
    private String errorMsg;        //异常信息
    private String throwingMsg;
    private Object request;         //请求参数结构化数据
    private Object response;        //返回值结构化数据

}